/*
 * Copyright (c) 2022 Kirky
 * Licensed under the Open Software Licence, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://opensource.org/licenses/osl-3.0.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bei.lingluan.slice;

import com.bei.lingluan.ResourceTable;
import com.bei.lingluan.utils.PreferencesHelper;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;

/**
 * @author Kirky
 * @version 1.0
 * @description setting ability slice
 * @date 2022/2/10
 */
public class SettingAbilitySlice extends AbilitySlice {
    private PreferencesHelper mPermissionPreferences, mUserSettingPreferences;

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_setting);
    }

    @Override
    public void onActive() {
        super.onActive();
        mPermissionPreferences = new PreferencesHelper(getContext(), "permission");
        mUserSettingPreferences =new PreferencesHelper(getContext(),"UserSetting");
    }

}
